/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mysql.process;

import entity.function.Queue;

/**
 *
 * @author dell
 */
public class LevelQueue extends Queue
{
//columns_______________________________________________________________________
private int level;
     //constructors_____________________________________________________________
public LevelQueue()
{
     
}
public LevelQueue(int maxsize,String type,int level)
{
     super(maxsize,type);
     this.level=level;
}
     //checker__________________________________________________________________
public boolean isAvailable()
{
     return this.size*2<=this.maxsize;
}
     //getter___________________________________________________________________
public int getLevel() 
{
     return level;
}
     //setter___________________________________________________________________
public void setLevel(int level)
{
     this.level=level;
}
     //toString_________________________________________________________________
@Override
public String toString()
{
      return level+"\t"+super.toString();
}
}
